﻿using System;
using fastCSharp;

namespace diantou.web.include
{
    /// <summary>
    /// 问题中被忽略的回答集合
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true, QueryName = null)]
    partial class questionIgnoreAnswer : diantou.web.question.view<questionIgnoreAnswer>
    {
        /// <summary>
        /// 显示回答集合
        /// </summary>
        protected answer.userAnswer[] hideAnswers
        {
            get
            {
                diantou.dataAccess.answer[] answers = diantou.dataAccess.tcpCall.answer.questionAnswers(question.Id, true);
                return answers.getArray(value => new answer.userAnswer { Answer = value, UserId = currentUserId });
            }
        }
    }
}
